﻿using System;
using System.Collections.Generic;
using Abp.Domain.Entities.Auditing;

namespace Camc.Quality.Bom
{
    /// <summary>
    ///     Bom主表
    /// </summary>
    public class BomDesign : FullAuditedEntity<Guid>
    {
        /// <summary>
        /// 物料详细信息ID
        /// </summary>
        public Guid MaterialsContentId { get; set; }
        /// <summary>
        /// bom类型
        /// </summary>
        public string BomType { get; set; }
        /// <summary>
        /// 版本
        /// </summary>
        public string VersionNo { get; set; } = "001";
        /// <summary>
        /// 是否使用
        /// </summary>
        public int IsUsed { get; set; }
        /// <summary>
        /// 变更ID
        /// </summary>
        public Guid ChangeId { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }
        /// <summary>
        /// 标识
        /// </summary>
        public int Bs { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Module { get; set; }
        /// <summary>
        /// 型号id
        /// </summary>
        public Guid ModuleId { get; set; }
        /// <summary>
        /// 发次ID
        /// </summary>
        public Guid SendTimeId { get; set; }
        /// <summary>
        /// 发次
        /// </summary>
        public string SendTime { get; set; }

        public ICollection<BomDesignDetail> BomDesignDetails { get; set; }
    }
}